#ifndef __OSAL_EVENT_H
#define __OSAL_EVENT_H

#ifdef __cplusplus
 extern "C" {
#endif
#include "System.h"

#if(RTOS_TYPE == ENABLE_AZURERTOS)

#include "tx_api.h"

typedef 	TX_EVENT_FLAGS_GROUP	OSAL_EVENT;
	
#elif(RTOS_TYPE == ENABLE_FREERTOS)
	
typedef 	osEventFlagsId_t		OSAL_EVENT;

#else

#endif
uint8_t 	OSAL_EventCreate(OSAL_EVENT *EventId,void *attr);
uint8_t 	OSAL_EventSet(OSAL_EVENT *EventId,long flags,uint16_t option);
uint32_t 	OSAL_EventGet(OSAL_EVENT *EventId,long flags,uint16_t option,long wait);
	
#ifdef __cplusplus
}
#endif
#endif


